# Author:  wuxianfeng
# Company: songqin
# File:    allelements.py
# Date:    22-9-21
# Time:    下午 9:33
print()
'''
知识点: 所有的元素(定位器)集中管理
缺点
    1. 管理太麻烦，可读性差
    2. 元素太多了
'''
class Elements:
    # PO2 Try not to expose the internals of the page
    # 登录页
    USERNAME_LOCATOR = 'id','username'
    PASSWORD_LOCATOR = 'id','password'
    LOGIN_BUTTON_LOCATOR = 'id','btnLogin'

    # 首页
    MAINPAGE_TEXT_LOCATOR = 'css selector','.no-redirect'

    USER_CENTER_LOCATOR = 'css selector','.user-avatar'
    LOGOUT_LOCATOR = 'xpath',"//span[text()='退出']"
    Verify_Button='xpath',"//span[contains(text(),'确定')]"

    # ...
    # 添加商品页面


    # 商品列表页面

